home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / stdwin.zoo / miniedit / regexp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-17  |  702 b   |  32 lines

  1. /*
  2.  * Definitions etc. for regexp(3) routines.
  3.  *
  4.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  5.  * not the System V one.
  6.  */
  7.  
  8. #include "configure.h"
  9. #ifdef LSC
  10. #define STATIC /**/
  11. #endif
  12. #define MULTILINE
  13.  
  14. #define NSUBEXP  10
  15. typedef struct regexp {
  16.     char *startp[NSUBEXP];
  17.     char *endp[NSUBEXP];
  18.     char regstart;        /* Internal use only. */
  19.     char reganch;        /* Internal use only. */
  20.     char *regmust;        /* Internal use only. */
  21.     int regmlen;        /* Internal use only. */
  22.     char program[1];    /* Unwarranted chumminess with compiler. */
  23. } regexp;
  24.  
  25. extern regexp *regcomp();
  26. extern int regexec();
  27. #ifdef MULTILINE
  28. extern int reglexec();
  29. #endif
  30. extern void regsub();
  31. extern void regerror();
  32.